#ifndef AGESPINBOXDELEGATE_H
#define AGESPINBOXDELEGATE_H

#include <QItemDelegate>

class AgeSpinBoxDelegate : public QItemDelegate
{
public:
    AgeSpinBoxDelegate();
    // QAbstractItemDelegate interface
public:
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
};

#endif // AGESPINBOXDELEGATE_H
